package com.daoeping.service.impl;

import java.util.List;

import com.daoeping.dao.Usr_educationDAO;
import com.daoeping.data.Usr_education;
import com.daoeping.service.Usr_educationService;

public class Usr_educationServiceImpl implements Usr_educationService {
	private Usr_educationDAO usr_educationDAO;
	
	public Usr_educationDAO getUsr_educationDAO() {
		return usr_educationDAO;
	}

	public void setUsr_educationDAO(Usr_educationDAO usr_educationDAO) {
		this.usr_educationDAO = usr_educationDAO;
	}

	@Override
	public boolean addUsr_education(Usr_education usr_education) {
		// TODO Auto-generated method stub
		return this.usr_educationDAO.insertData(usr_education);
	}

	@Override
	public boolean editUsr_education(Usr_education usr_education) {
		// TODO Auto-generated method stub
		System.out.println("-------------------edit serviceimpl");

		return this.usr_educationDAO.updateData(usr_education);
	}

	@Override
	public boolean delUsr_education(Usr_education usr_education) {
		// TODO Auto-generated method stub
		return this.usr_educationDAO.deleteData(usr_education);
	}

	@Override
	public List<Usr_education> findUsr_educationList() {
		// TODO Auto-generated method stub
		return this.usr_educationDAO.findUsr_educationList();
	}

	@Override
	public List<Usr_education> findUsr_educationById(int id) {
		// TODO Auto-generated method stub
		return this.usr_educationDAO.findUsr_educationByID(id);
	}

	@Override
	public List<Usr_education> findUsr_educationByUserId(int user_id) {
		// TODO Auto-generated method stub
		return this.usr_educationDAO.findUsr_educationByUserId(user_id);
	}

}
